#pragma once
#include<string>
#include<fstream>
#include "Primarystudent.h"
using namespace std;


// 中学生类
class MiddleStudent : public PrimaryStudent {
public:
    double geography;  // 地理成绩
    double history;    // 历史成绩

public:
    MiddleStudent() {}
    void input() override;
    void display() const override;
    double calculateTotalScore() const override;
    void save(ofstream& out) const override;
    void load(ifstream& in) override;
    // ... 其他成员函数声明
};
